<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link rel="icon" type="image/x-icon"	href="${basePath }static/img/HomePageImg/cat.jpg" />
<link rel="stylesheet" href="${basePath }static/css/HomePageCss/cool.css" />
<link rel="stylesheet" href="${basePath }static/css/HomePageCss/top.css" />
<link rel="stylesheet" href="${basePath }static/css/HomePageCss/model.css" />
<link rel="stylesheet" href="${basePath }static/css/HomePageCss/zq.css" />
<link rel="stylesheet" href="${basePath }static/css/HomePageCss/rightbar.css" />
<link rel="stylesheet" href="${basePath }static/css/HomePageCss/bottom.css" />

</head>
<body>


<!--第二行不是那么黑的框框-->
	<div id="search" class="searchSytle text-center pinned">
		<ul>
			<!--链接到人家官网的各种-->
			<li><a href="${basePath }jump?pg=main"	target="_blank"> 全部商品 </a></li>
			<li><a href="${basePath }jump?pg=phoneList" target="_blank"> 联想手机</a></li>
			<li><a href="#"	target="_blank"> moto手机</a></li>
			<li><a href="#"	target="_blank"> 智能配件</a></li>
			<li><a href="#"	target="_blank"> Z码通道</a></li>
			<!--没有什么卵用的搜索框-->
			<li><input type="text" class="form-control"	placeholder="请输入搜索内容" /></li>
			<li><a href="#"><img src="${basePath }static/img/HomePageImg/bigger.png" /></a></li>
			<li><a href="javascript:;" target="_blank" id="NO"> 
			<img src="${basePath }static/img/HomePageImg/loginImg.png" id="loginImg" onclick="ShowLogin()" />
			</a></li>
			<li><img src="${basePath }static/img/HomePageImg/registerGift.png" id="reg"	width="160px" height="32px" /></li>
		</ul>
	</div>

</body>

<script type="text/javascript" src="${basePath }static/js/jquery-1.12.4.min.js"></script>
<script type="text/javascript" src="${basePath }static/js/HomePageJs/cold.js"></script>
<script type="text/javascript" src="${basePath }static/js/HomePageJs/jquery.pin.js"></script>
<script type="text/javascript" src="${basePath }static/js/HomePageJs/navAuto.js"></script>
<script type="text/javascript" src="${basePath }static/js/HomePageJs/registerImg.js"></script>
<script type="text/javascript" src="${basePath }static/js/HomePageJs/layer-v3.1.1/layer/layer.js"></script>

<script type="text/javascript">
		function ShowLogin() {
			layer.open({
				type: 2,
    			title: '登录',
    			maxmin: true,
    			area: ['800px', '600px'],
    			content: '${basePath }jump?pg=userlogin_1',
			});
		}
</script>

<script type="text/javascript">
	$(document).ready(function(){
		var o=document.getElementById("NO");//获取父节点
		var a=document.getElementById("loginImg");//获取需要删除的子节
		//获取用户的登录账号（手机号）
		var $isLogin=<%=session.getAttribute("userTel")%>
		//判断是否登录
		if($isLogin == null ||  typeof($isLogin) == "undefined"|| $isLogin == ""){
			
		}else{
			
			o.removeChild(a); //从父节点o上面移除子节点a;
			$("#NO").html("<span ><%=session.getAttribute("userName")%></span>");
			document.getElementById("userstatus").style.display="";
		}
	});

 
</script>
</html>